package com.zy.xuanwo.zyc.portal.parser.imp;


import com.zy.xuanwo.zyc.portal.parser.BaseParser;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * remarks:
 * Created by ChowYvlChen on 2016/7/6  10:41
 */
public class ProductsDevicesImportParser extends BaseParser<String> {
    @Override
    public String parserJSON(String jsonStr) throws JSONException {
        String device_id = null;
        if (super.ParseResultPoly(jsonStr) == null) {
            JSONObject mJSONObject = new JSONObject(jsonStr);
            if (mJSONObject.has("device_id")) {
                device_id = mJSONObject.getString("device_id");
            }
        }
        return device_id;
    }
}
